<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>装修申办列表 (分帧页)</title>

<link href="${ctx}/css/grid.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/scripts/global.js"></script>
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>

<script type="text/javascript">
	var ACTION_URL = "${ctx}/renovation_renovateRequisitionAction.do?";
	function openDetailPage(requisitionId){ //双击打开详细页面
		var url = ACTION_URL+"method=navigateProceduresDetailMain&requisitionId="+requisitionId;
   		top.windowOpen(url, "proceduresDetailMain", "详细资料", 560, 810,true,"proceduresDetailMainIfm");
	}
	function resize(){
		parent.window.document.all('frameList').style.height=document.getElementById("divID").scrollHeight;
	}
	function init(){  //初始化
		resize();
	}
</script>

</head>
<body onload="init();">
<div style="overflow:auto; height:200px;" id="divID">
	<ec:ceTable items="reqlist"
				autoIncludeParameters="true"
				var="reqItem"
				action="${ctx}/houseMainLin_houseMainLineAction.do?method=queryRequisitions&houseNumber=${houseNumber}"
				rowsDisplayed="10"
				width="100%"
				view="pmsview"
				sortable="false"
				styleClass="gridData"
			>
		<ec:ceRow styleClass="grid" ondblclick="openDetailPage('${reqItem.keyword}');">
			<ec:ceColumn width="12%" property="requisitionNumber" headerCell="pmsHeadrCell"  title="申请单号" sortable="true"/>
			<ec:ceColumn width="8%"  property="clientNames" headerCell="pmsHeadrCell"  title="业主姓名"/>
			<ec:ceColumn width="10%"  property="requisitionDate" headerCell="pmsHeadrCell" title="装修申请日期" sortable="true"  cell="date" parse="yyyy-MM-dd" />
			<ec:ceColumn width="17%"  property="#" headerCell="pmsHeadrCell" title="装修施工期限">
				<fmt:formatDate pattern="yyyy-MM-dd" value="${reqItem.beginDate }"/>到<fmt:formatDate pattern="yyyy-MM-dd" value="${reqItem.endDate }"/>
			</ec:ceColumn>
			<ec:ceColumn width="8%"  property="requisitionStateView" headerCell="pmsHeadrCell" title="审批状态">${reqItem.requisitionStateView == null ? '&nbsp;— —' : reqItem.requisitionStateView } </ec:ceColumn>
			<ec:ceColumn width="8%"  property="feeStateView" headerCell="pmsHeadrCell"  title="费用状态"></ec:ceColumn>
			<ec:ceColumn width="8%"  property="renovateLicenceStateView" headerCell="pmsHeadrCell" title="发证状态" />
			<ec:ceColumn width="8%"  property="checkConfirmYnView" headerCell="pmsHeadrCell" title="进场确认" />
			<ec:ceColumn width="13%"  property="processState" headerCell="pmsHeadrCell" title="装修进程" showTitle="false">
				<c:choose>
					<c:when test="${reqItem.processState =='001'}">
						<img src="${ctx}/images/ico_zx_shen11.gif" alt="装修申办" width="16" height="16" border="0" align="middle"/>&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_jian3.gif" alt="装修监管" width="16" height="16" border="0" align="middle" />&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_yan2.gif" alt="竣工验收" width="16" height="16" border="0" align="middle" />&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_tui3.gif" alt="保证金核算" width="16" height="16" border="0" align="middle" />
					</c:when>
					<c:when test="${reqItem.processState == '002'}">
						<img src="${ctx}/images/ico_zx_shen11.gif" alt="装修申办" width="16" height="16" border="0" align="middle"/>&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_jian1.gif" alt="装修监管" width="16" height="16" border="0" align="middle" />&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_yan2.gif" alt="竣工验收" width="16" height="16" border="0" align="middle" />&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_tui3.gif" alt="保证金核算" width="16" height="16" border="0" align="middle" />
					</c:when>
					<c:when test="${reqItem.processState == '003'}">
						<img src="${ctx}/images/ico_zx_shen11.gif" alt="装修申办" width="16" height="16" border="0" align="middle"/>&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_jian1.gif" alt="装修监管" width="16" height="16" border="0" align="middle" />&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_yan1.gif" alt="竣工验收" width="16" height="16" border="0" align="middle" />&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_tui3.gif" alt="保证金核算" width="16" height="16" border="0" align="middle" />
					</c:when>
					<c:otherwise>
						<img src="${ctx}/images/ico_zx_shen11.gif" alt="装修申办" width="16" height="16" border="0" align="middle"/>&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_jian1.gif" alt="装修监管" width="16" height="16" border="0" align="middle" />&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_yan1.gif" alt="竣工验收" width="16" height="16" border="0" align="middle" />&nbsp;&nbsp;&nbsp;
						<img src="${ctx}/images/ico_zx_tui1.gif" alt="保证金核算" width="16" height="16" border="0" align="middle" />
					</c:otherwise>
				</c:choose>
			</ec:ceColumn>
		</ec:ceRow>
	</ec:ceTable>
</div>
</body>
</html>
